Learn R Programming

algebraic.dist (version 0.9.1)

^.dist: Power operator for distribution objects.

Description

Power operator for distribution objects.

Usage

# S3 method for dist
^(x, y)

Value

A simplified distribution or edist

Arguments

x

a dist object (base)

y

a numeric scalar (exponent)

Examples

Run this code
# Standard normal squared yields chi-squared(1)
z <- normal(0, 1)^2
z

Run the code above in your browser using DataLab